[id].vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item>
  15. <NuxtLink to="/">首页</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>本网招聘</el-breadcrumb-item>
  18. </el-breadcrumb>
  19. </div>
  20. </div>
  21. <!-- 资讯列表 -->
  22. <div class="newsList">
  23. <div class="inner">
  24. <div class="innerLeft">
  25. <div class="projectMoreBox">
  26. <div class="projectMoreTitle">社会保障在线网</div>
  27. <div class="projectMoreText">
  28. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  29. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  30. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  31. </div>
  32. </div>
  33. <div class="innerTitle">本网招聘</div>
  34. <ul class="list">
  35. <li v-for="(item, index) in newsList" :key="index">
  36. <NuxtLink :to="{ path: `zhaopin/${item.id}.html` }" :title="item.con_title">{{item.con_title}}</NuxtLink>
  37. </li>
  38. </ul>
  39. </div>
  40. <div class="innerRight">
  41. <div class="rightMenuTitle">导航列表</div>
  42. <ul>
  43. <li v-for="(item, index) in bottomMenu" :key="index">
  44. <NuxtLink :to="`/about/${item.name_pinyin}/`" :title="item.name"
  45. v-if="item.id == pageId && item.id != 7" class="active">
  46. {{ item.name }}
  47. </NuxtLink>
  48. <NuxtLink :to="`/about/${item.name_pinyin}/`" :title="item.name"
  49. v-else-if="item.id != pageId && item.id != 7">
  50. {{ item.name }}
  51. </NuxtLink>
  52. <NuxtLink :to="`/about/${item.name_pinyin}/1.html`" :title="item.name"
  53. v-if="item.id == 7 && pageId == 7" class="active">
  54. {{item.name }}
  55. </NuxtLink>
  56. <NuxtLink :to="`/about/${item.name_pinyin}/1.html`" :title="item.name" v-else-if="item.id == 7">
  57. {{ item.name}}
  58. </NuxtLink>
  59. </li>
  60. </ul>
  61. </div>
  62. <div style="clear: both;"></div>
  63. </div>
  64. </div>
  65. <!-- 列表页广告二 -->
  66. <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
  67. <!-- 页面底部 -->
  68. <HomeFoot1></HomeFoot1>
  69. </div>
  70. </template>
  71. <script setup>
  72. //1.页面依赖 start ---------------------------------------->
  73. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  74. import { ArrowRight } from '@element-plus/icons-vue'
  75. import { ref, onMounted } from 'vue';
  76. //获得跳转过来的id
  77. const route = useRoute();
  78. //获得当前的完整路径
  79. const fullPath = route.path;
  80. //拆分,取出来中间这一段,然后提取数字部分
  81. const segments = fullPath.split('/');
  82. const targetSegment = segments[2];
  83. const numberPart = targetSegment.match(/\d+$/)?.[0];
  84. //路由id
  85. //let routeId = 11 //排除路径错误可以打开这个
  86. const pageId = numberPart;//左侧菜单选中哪个
  87. //1.页面依赖 end ---------------------------------------->
  88. //2.页面数据 start ---------------------------------------->
  89. //广告
  90. let adImg1 = ref([]);
  91. let adImg2 = ref([]);
  92. // async function getAdData(){
  93. // const adData = await requestDataPromise('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  94. // if(adData.code==200){
  95. // for(let item of adData.data){
  96. // if(item.ad_tag == 'PAGE_0001'){
  97. // adImg1.value = item;
  98. // }
  99. // if(item.ad_tag == 'PAGE_0002'){
  100. // adImg2.value = item;
  101. // }
  102. // }
  103. // }else{
  104. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  105. // console.log("错误位置:获取详情页广告列表")
  106. // console.log("后端错误反馈:",adData.message)
  107. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  108. // }
  109. // }
  110. // getAdData();
  111. onMounted(async () => {
  112. //从客户端获取行政职能部门 加快打开速度
  113. const { $webUrl, $CwebUrl } = useNuxtApp();
  114. //广告1
  115. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0001`
  116. const responseAd1 = await fetch(url, {
  117. headers: {
  118. 'Content-Type': 'application/json',
  119. 'Userurl': $CwebUrl,
  120. 'Origin': $CwebUrl
  121. }
  122. });
  123. const resultAd1 = await responseAd1.json();
  124. adImg1.value = resultAd1.data[0];
  125. //广告2
  126. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0002`
  127. const responseAd2 = await fetch(url2, {
  128. headers: {
  129. 'Content-Type': 'application/json',
  130. 'Userurl': $CwebUrl,
  131. 'Origin': $CwebUrl
  132. }
  133. });
  134. const resultAd2 = await responseAd2.json();
  135. adImg2.value = resultAd2.data[0];
  136. })
  137. //左侧导航
  138. const bottomMenu = ref([]);
  139. async function getPageMenu() {
  140. const mkdata = await requestDataPromise('/web/getWebsiteFooterCategory', {
  141. method: 'GET',
  142. query: {},
  143. });
  144. bottomMenu.value = mkdata.data;
  145. }
  146. getPageMenu();
  147. //列表
  148. const newsList = ref([]);
  149. let newslists = async () => {
  150. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  151. method: 'GET',
  152. query: {
  153. 'fcat_id':pageId,
  154. },
  155. });
  156. newsList.value = listData.data;
  157. }
  158. //获得列表
  159. newslists();
  160. //2.页面数据 end ---------------------------------------->
  161. //3 设置seo信息
  162. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  163. method: 'GET',
  164. query: {},
  165. });
  166. let seoTitle = setData.data.website_head.title;
  167. let seoDescription = setData.data.website_head.description;
  168. let seoKeywords = setData.data.website_head.keywords;
  169. let seoSuffix = setData.data.website_head.suffix;
  170. let seoName = setData.data.website_head.website_name;
  171. useSeoMeta({
  172. title: seoTitle + "_" + seoSuffix,
  173. meta: [
  174. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  175. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  176. ]
  177. });
  178. //3.设置seo信息 end---------------------------------------->
  179. </script>
  180. <style lang="less" scoped>
  181. //导航条
  182. .breadcrumb {
  183. width: 100%;
  184. height: 22px;
  185. margin-bottom: 30px;
  186. font-family: Microsoft YaHei, Microsoft YaHei;
  187. font-weight: 400;
  188. font-size: 20px;
  189. color: #666666;
  190. line-height: 23px;
  191. text-align: left;
  192. font-style: normal;
  193. text-transform: none;
  194. :deep(.el-breadcrumb) {
  195. display: inline-block;
  196. vertical-align: -4px;
  197. }
  198. :deep(.el-breadcrumb__inner a),
  199. :deep(.el-breadcrumb__inner.is-link) {
  200. color: #666666;
  201. font-weight: 400;
  202. text-decoration: none;
  203. transition: var(--el-transition-color);
  204. }
  205. span {
  206. font-family: Microsoft YaHei, Microsoft YaHei;
  207. font-weight: 400;
  208. font-size: 20px;
  209. color: #666666;
  210. line-height: 23px;
  211. text-align: left;
  212. font-style: normal;
  213. text-transform: none;
  214. }
  215. span:hover {
  216. color: #666666;
  217. }
  218. .location {
  219. margin-right: 20px;
  220. width: 100px;
  221. height: 22px;
  222. font-family: Microsoft YaHei, Microsoft YaHei;
  223. font-weight: 400;
  224. font-size: 20px;
  225. color: #666666;
  226. line-height: 23px;
  227. text-align: left;
  228. font-style: normal;
  229. text-transform: none;
  230. }
  231. }
  232. // 资讯列表
  233. .newsList {
  234. width: 100%;
  235. margin-bottom: 70px;
  236. .inner {
  237. width: 1200px;
  238. height: 1300px;
  239. .innerLeft {
  240. height: 65px;
  241. line-height: 65px;
  242. font-size: 22px;
  243. color: #028E21;
  244. font-weight: bold;
  245. }
  246. .innerTitle {
  247. font-size: 24px;
  248. }
  249. .innerLeft {
  250. float: right;
  251. >.list {
  252. height: 570px;
  253. margin-bottom: 70px;
  254. border-top: 1px solid #139602;
  255. >li {
  256. width: 790px;
  257. height: 60px;
  258. white-space: nowrap;
  259. overflow: hidden;
  260. text-overflow: ellipsis;
  261. line-height: 60px;
  262. //border-bottom: 1px solid #D9D9D9;
  263. >a {
  264. width: 360px;
  265. height: 26px;
  266. cursor: pointer;
  267. font-family: Microsoft YaHei, Microsoft YaHei;
  268. font-weight: 400;
  269. font-size: 20px;
  270. color: #333333;
  271. line-height: 26px;
  272. text-align: left;
  273. font-style: normal;
  274. text-transform: none;
  275. }
  276. }
  277. >li:hover>a {
  278. color: #139602;
  279. }
  280. >li:nth-child(1)::after,
  281. >li:nth-child(2)::after {
  282. content: "热";
  283. margin-left: 13px;
  284. background: #FF8A37;
  285. color: #fff;
  286. font-size: 14px;
  287. padding: 0px 2px;
  288. }
  289. >li:nth-child(5n) {
  290. border-bottom: 1px solid #D9D9D9;
  291. }
  292. }
  293. >.pagination {
  294. width: 800px;
  295. height: 34px;
  296. margin-left: 141px;
  297. display: flex;
  298. justify-content: center;
  299. margin: 0;
  300. // 鼠标移入后字体颜色
  301. .el-pagination::v-deep :hover {
  302. color: #139609;
  303. }
  304. .el-pagination.is-background::v-deep .btn-next,
  305. .el-pagination.is-background::v-deep .btn-prev {
  306. width: 70px;
  307. height: 34px;
  308. margin: 0px 10px;
  309. border-radius: 4px;
  310. }
  311. .el-pagination.is-background::v-deep .el-pager li {
  312. margin: 0px 10px;
  313. width: 38px;
  314. height: 34px;
  315. border-radius: 4px;
  316. }
  317. .el-pagination.is-background::v-deep .btn-next.is-active,
  318. .el-pagination.is-background::v-deep .btn-prev.is-active,
  319. .el-pagination.is-background::v-deep .el-pager li.is-active {
  320. background-color: #028e21;
  321. color: #fff;
  322. }
  323. }
  324. }
  325. .innerRight {
  326. width: 279px;
  327. .rightMenuTitle {
  328. width: 279px;
  329. height: 69px;
  330. font-size: 22px;
  331. font-weight: bold;
  332. line-height: 58px;
  333. text-align: center;
  334. color: #fff;
  335. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreTitle.png") no-repeat;
  336. margin-bottom: 30px;
  337. }
  338. ul {
  339. li {
  340. a {
  341. border-left: 5px solid #028E21;
  342. margin-bottom: 15px;
  343. font-size: 22px;
  344. display: block;
  345. height: 61px;
  346. line-height: 61px;
  347. color: #333333;
  348. text-align: center;
  349. background: #FBFBFB;
  350. }
  351. }
  352. }
  353. .active {
  354. border-left: 0;
  355. border: 1px solid #028E21;
  356. background: #fff;
  357. }
  358. }
  359. }
  360. }
  361. //资讯推荐
  362. .zixuntuijian {
  363. width: 100%;
  364. height: 290px;
  365. margin-bottom: 70px;
  366. .innerLeft {
  367. // 左侧
  368. .zixunLeft {
  369. margin-right: 30px;
  370. }
  371. .zixunRight,
  372. .zixunLeft {
  373. float: left;
  374. width: 380px;
  375. height: 290px;
  376. // 标题部分
  377. >.title {
  378. width: 380px;
  379. }
  380. >.title>h3 {
  381. height: 36px;
  382. font-family: Source Han Sans, Source Han Sans;
  383. font-weight: bold;
  384. font-size: 24px;
  385. color: #000000;
  386. line-height: 28px;
  387. text-align: left;
  388. font-style: normal;
  389. text-transform: none;
  390. border-bottom: 1px solid #139602;
  391. }
  392. >.title>h3>span {
  393. float: right;
  394. width: 56px;
  395. height: 20px;
  396. line-height: 24px;
  397. font-weight: 400;
  398. font-size: 14px;
  399. color: #999999;
  400. font-style: normal;
  401. text-transform: none;
  402. }
  403. .photo_text {
  404. >li:first-child {
  405. width: 380px;
  406. height: 120px;
  407. margin-top: 20px;
  408. margin-bottom: 15px;
  409. position: relative;
  410. >img {
  411. float: left;
  412. width: 160px;
  413. height: 120px;
  414. }
  415. >div {
  416. float: left;
  417. width: 220px;
  418. height: 120px;
  419. padding-left: 15px;
  420. padding-top: 6px;
  421. box-sizing: border-box;
  422. background-color: #f6f6f6;
  423. >h5 {
  424. width: 200px;
  425. height: 54px;
  426. display: -webkit-box;
  427. -webkit-box-orient: vertical;
  428. -webkit-line-clamp: 2;
  429. overflow: hidden;
  430. text-overflow: ellipsis;
  431. word-break: break-all;
  432. font-family: Source Han Sans, Source Han Sans;
  433. font-weight: 500;
  434. font-size: 18px;
  435. color: #333333;
  436. line-height: 26px;
  437. text-align: left;
  438. font-style: normal;
  439. text-transform: none;
  440. }
  441. >p {
  442. width: 200px;
  443. height: 22px;
  444. line-height: 20px;
  445. position: absolute;
  446. bottom: 5px;
  447. right: 0;
  448. >span {
  449. display: inline-block;
  450. // width: 100px;
  451. height: 18px;
  452. font-family: Source Han Sans, Source Han Sans;
  453. font-weight: 400;
  454. font-size: 12px;
  455. color: #999999;
  456. text-align: left;
  457. line-height: 14px;
  458. font-style: normal;
  459. text-transform: none;
  460. }
  461. >span:last-child {
  462. // width: 90px;
  463. text-align: right;
  464. margin-left: 20px;
  465. }
  466. }
  467. }
  468. }
  469. >li {
  470. width: 380px;
  471. height: 25px;
  472. white-space: nowrap;
  473. overflow: hidden;
  474. text-overflow: ellipsis;
  475. font-family: PingFang SC, PingFang SC;
  476. font-weight: 500;
  477. font-size: 18px;
  478. color: #333333;
  479. line-height: 21px;
  480. text-align: left;
  481. font-style: normal;
  482. text-transform: none;
  483. margin-bottom: 10px;
  484. em {
  485. display: inline-block;
  486. width: 8px;
  487. height: 8px;
  488. border-radius: 8px;
  489. margin-right: 10px;
  490. background-color: #d9d9d9;
  491. }
  492. }
  493. >li:hover {
  494. color: #139602;
  495. }
  496. >li:hover em {
  497. background-color: #139602;
  498. }
  499. }
  500. }
  501. }
  502. .innerRight {
  503. width: 381px;
  504. height: 290px;
  505. background-color: #fbfbfb;
  506. >.title {
  507. width: 380px;
  508. height: 40px;
  509. line-height: 40px;
  510. border-top: 1px solid #139602;
  511. border-bottom: 1px solid #e7e7e7;
  512. >h4 {
  513. font-family: Microsoft YaHei, Microsoft YaHei;
  514. font-weight: 400;
  515. margin-left: 20px;
  516. font-size: 20px;
  517. color: #000000;
  518. text-align: left;
  519. font-style: normal;
  520. text-transform: none;
  521. >span {
  522. float: right;
  523. font-family: Microsoft YaHei, Microsoft YaHei;
  524. font-weight: 400;
  525. font-size: 14px;
  526. margin-right: 10px;
  527. color: #999999;
  528. text-align: left;
  529. font-style: normal;
  530. text-transform: none;
  531. }
  532. }
  533. }
  534. .rightList {
  535. height: 540px;
  536. margin-top: 20px;
  537. >li {
  538. height: 100px;
  539. margin-bottom: 10px;
  540. >img {
  541. width: 150px;
  542. height: 100px;
  543. }
  544. >p {
  545. width: 219px;
  546. height: 100px;
  547. padding-left: 12px;
  548. font-family: PingFang SC, PingFang SC;
  549. font-weight: 400;
  550. font-size: 16px;
  551. color: #333333;
  552. line-height: 22px;
  553. text-align: left;
  554. font-style: normal;
  555. text-transform: none;
  556. }
  557. >p:hover {
  558. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  559. }
  560. }
  561. }
  562. }
  563. }
  564. .projectMoreBox {
  565. margin: 0 auto;
  566. height: 540px;
  567. margin-top: 20px;
  568. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreBg.png") no-repeat;
  569. margin-bottom: 40px;
  570. .projectMoreTitle {
  571. color: #028E21;
  572. padding-top: 20px;
  573. font-size: 26px;
  574. padding-left: 204px;
  575. }
  576. .projectMoreText {
  577. padding: 40px;
  578. font-size: 20px;
  579. color: #333333;
  580. text-indent: 2em;
  581. line-height: 36px;
  582. }
  583. }
  584. </style>